/**
 * Copyright (c) 2003-2017 Ben Lau
 * All rights reserved.
 */
package jvmtuning;

/**
 * @author liubin
 *
 */
public class HProfTest {

	public void slowMehtod() {
		try {
			Thread.sleep(100);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

	public void slowerMehtod() {
		try {
			Thread.sleep(10000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

	public void fastMethod() {
		try {
			Thread.yield();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public static void main(String[] args) {
		HProfTest test = new HProfTest();
		test.fastMethod();
		test.slowMehtod();
		test.slowerMehtod();
	}

}
